//
//  PrefsV2ViewController.h
//  FuelLog4
//
//  Created by Olaf on 10.05.10.
//  Copyright 2010 olafgreck. All rights reserved.
//

#import <UIKit/UIKit.h> 

#import "PrefsV2NumericSubViewController.h"
#import "PrefsTextSubViewController.h"


#define numberOfSections					2

#define section_UnitsAndDisplay			0
#define section_Units_options				4

#define section_OnlineAccounts			1
#define section_OnlineAccounts_options 1
#define _onlineServiceNameGoogleDocs @"GoogleDocs"
 
#define prefRow_Username	0
#define prefRow_Password	1

#define _username @"username"
#define _password @"password"

#define prefRow_Units          0

#define prefRow_DistanceDigits 1
#define seddprefRowction_DistanceDigits_options 1

#define prefRow_VolumeDigits   2
#define section_VolumeDigits_options 1

#define prefRow_CostDigits     3
#define section_CostDigits_options 1

#define statsRow_ObservationPeriod 4

#define maxRows_Units          5 // dpf
#define maxRows_DistanceDigits 2 
#define maxRows_VolumeDigits   2 
#define maxRows_CostDigits     2
#define maxRows_Password       2

#define _UserAgentIdString @"Fuel-Log-4"

@interface PrefsViewController : UITableViewController {

	NSMutableArray * preferencesPrimaryArray;
	NSMutableArray * preferencesSecondaryArray;
	NSMutableArray * preferencesTitleArray;
	
	NSMutableArray * credentialsPrimaryArray; 
	
	PrefsNumericSubViewController  *prefsNumericSubViewController;
	PrefsTextSubViewController * prefsTextSubViewController;
//	KeychainItemWrapper *pwWrapper;
	
	int units;
	int distanceDigits;
	int volumeDigits;
	int costDigits;
	UIBarButtonItem *doneButton;
	
	NSString * userNameString;
	NSString * passWordString;
	
}
@property(nonatomic, retain) NSMutableArray * preferencesPrimaryArray;
@property(nonatomic, retain) NSMutableArray * preferencesSecondaryArray;
@property(nonatomic, retain) NSMutableArray * preferencesTitleArray;

@property(nonatomic, retain) NSMutableArray * credentialsPrimaryArray; 
@property(nonatomic, retain) UIBarButtonItem *doneButton;
@property(nonatomic, retain) NSString * userNameString;
@property(nonatomic, retain) NSString * passWordString;
@end
